

<!DOCTYPE html>
<html >
<head>
  <meta charset="utf-8">
  <title>菜单管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="${basePath!}/genius/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="${basePath!}/genius/style/admin.css" media="all">
</head>
<style>
.ew-tree-table-group .ew-tree-table-box {
    overflow: auto;
    max-height:905px;
}
</style>
<body style="overflow: hidden;">

  <div class="layui-fluid">   
    <div class="layui-card">
      
      <div class="layui-card-body">
      <@shiro.hasPermission name="ac6ae7fa62f74b35a9716ff724284739">
      	<button class="layui-btn " shiro:hasPermission="user:create" data-type="add"><i class="layui-icon layui-icon-add-circle "></i> 新增</button>
	  </@shiro.hasPermission>
	  <@shiro.hasPermission name="31601ef168634db184a4a12e69aa6136">
      	<button class="layui-btn layui-btn-normal"  data-type="edit"><i class="layui-icon layui-icon-edit "></i> 编辑</button>
	   </@shiro.hasPermission>
	   <@shiro.hasPermission name="ceff49da6dd641a5be70c3c7843ffd80">
      	<button class="layui-btn layui-btn-warm" data-type="batchdel"><i class="layui-icon layui-icon-delete "></i> 删除</button>
	   </@shiro.hasPermission>
        <table id="LAY-menu-list" lay-filter="LAY-menu-list"></table> 
        <script type="text/html" id="typeTpl">
          {{#  if(d.type == '目录'){ }}
            <button class="layui-btn layui-btn-xs layui-btn-primary">目录</button>
          {{#  } else if(d.type == '菜单'){ }}
            <button class="layui-btn layui-btn-xs layui-btn-normal">菜单</button>
 		  {{#  } else if(d.type == '弹窗'){ }}
            <button class="layui-btn layui-btn-xs layui-btn-danger">弹窗</button>
 		  {{#  } else if(d.type == '链接'){ }}
            <button class="layui-btn layui-btn-xs layui-btn-warm">链接</button>
          {{#  } else { }}
            <button class="layui-btn layui-btn-xs ">{{d.type}}</button>
          {{#  } }}
        </script> 
         <script type="text/html" id="statusTpl">
          {{#  if(d.status == '启用'){ }}
            		<span  style="color:green">启用</span>
          {{#  } else { }}
            <span  style="color:#ddd">禁用</span>
          {{#  } }}
        </script>
      </div>
    </div>
  </div>

 <script src="${basePath!}/genius/layui/layui.js"></script>  
  <script>
  layui.config({
    base: '${basePath!}/genius/' //静态资源所在路径
    ,host:'${basePath!}'//项目访问路径
  }).extend({
    index: 'lib/index' //主入口模块
    ,select:'/adminmanager/menu/select'
  }).use(['index','select']);
  </script>
</body>
</html>

